public class Cat extends Animal{//Cat继承Animal

    public Cat(String name, int age) {//父类写了含参构造函数子类就一定要写构造函数
        super(name, age);
        System.out.println("Cat带一个参数的构造函数");
    }

    public void mimi(){
        System.out.println(this.name + "在咪咪叫");
    }

}
